package com.yanqu.road.logic.bussiness.player;

import com.yanqu.road.entity.activity.UserActivityConditionData;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

public class UserTradeWarActivityBussiness {

	public static Map<Integer, List<UserActivityConditionData>> getUserActivityConditionDataMap(long userId, int activityId) {
		return DaoHelper.getUserTradeWarActivityDaoImpl().getUserActivityConditionDataMap(userId, activityId);
	}

	public static UserActivityConditionData getNewUserActivityConditionDataMap(long userId, int activityId,int type){
		return DaoHelper.getUserTradeWarActivityDaoImpl().getNewUserActivityConditionData(userId,activityId,type);
	}

	public static List<UserActivityConditionData> getAllUserActivityConditionDataList(int activityId) {
		return DaoHelper.getUserTradeWarActivityDaoImpl().getAllUserActivityConditionDataList(activityId);
	}

	public static List<UserActivityConditionData> getUserActivityConditionDataList(int activityId, long userId, int type){
		return DaoHelper.getUserTradeWarActivityDaoImpl().getUserActivityConditionDataList(activityId, userId, type);
	}

	public static List<UserActivityConditionData> getUserActivityConditionDataList(int activityId, int type, int rankNum){
		return DaoHelper.getUserTradeWarActivityDaoImpl().getUserActivityConditionDataList(activityId, type, rankNum);
	}

	public static Map<Long, UserActivityConditionData> getUserActivityConditionDataMap(int activityId, int type){
		return DaoHelper.getUserTradeWarActivityDaoImpl().getUserActivityConditionDataMap(activityId, type);
	}

	public static boolean addUserActivityConditionData(UserActivityConditionData userActivityConditionData) {
		return DaoHelper.getUserTradeWarActivityDaoImpl().add(userActivityConditionData);
	}

	public static boolean updateUserActivityConditionData(UserActivityConditionData userActivityConditionData) {
		return DaoHelper.getUserTradeWarActivityDaoImpl().update(userActivityConditionData);
	}
}
